package com.dhcc.bpm.modules.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @ClassName UserRole
 * @Description 实体类
 * @Author sjm
 * @Date 2020/2/21 0021 15:16
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 **/
@Data
@TableName("blade_user_role")
@ApiModel(value = "UserRole对象", description = "UserRole对象")
public class UserRole implements Serializable {

	private static final long serialVersionUID = 1L;

		/**
		 * 编号
		 */
		@ApiModelProperty(value = "编号")
		@JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
		@TableId( value = "id", type = IdType.ASSIGN_ID )
		private Long id;
	/**
	* 用户ID
	*/
		@ApiModelProperty(value = "用户ID")
		@JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
		private Long userId;
	/**
	* 角色ID
	*/
		@ApiModelProperty(value = "角色ID")
		@JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
		private Long roleId;

}
